//
//  FeedKitFeed+WebFeed.swift
//  RssFly
//
//  Created by shen on 2023/10/17.
//

import Foundation
import FeedKit

extension FeedKit.Feed: WebFeed {
    public var webpage: URL? {
        switch self {
        case let .atom(atomFeed):
            return atomFeed.webpage
        case let .rss(rssFeed):
            return rssFeed.webpage
        case let .json(jsonFeed):
            return jsonFeed.webpage
        }
    }
}
